class MyClass:
    up = 0
    down = 1
    left = 2
    right = 3

print MyClass.up
instance = MyClass()
print instance.up

